package lhxia.translater.http.server;

import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
import java.util.Arrays;

public class DataHandler {
	
	private byte[] tmp = new byte[4096];
	
	public void onConnect(SocketChannel connect){}
	
	public void onDisConnect(SocketChannel connect){}
	
	public void handleData(SocketChannel connect, ByteBuffer data, int length){
		Arrays.toString(data.array());
		
		System.out.println("handle : " + length);
		try {
			Thread.sleep(100);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
